messages = {
	{
		define = "struct", name = "RoleInfo",
		attributes =
		{
			{type="int32", name="rid", default = 0},
			{type="int16", name="hid", default = 0},
			{type="int16", name="lvl", default = 1},
			{type="int16", name="elvl", default = 0},
		}
	},
	{
		define = "struct", name = "RoleInfoEx", base = "RoleInfo",
		attributes =
		{
			{type="int16", name="prop_vit", default = 0},
			{type="int16", name="prop_str", default = 0},
			{type="int16", name="prop_agi", default = 0},
			{type="int16", name="prop_int", default = 0},
			{type="int16", name="prop_left", default = 0},
			{type="int32", name="hp", default = 0},
			{type="int32", name="mp", default = 0},
			{type="int32", name="maxhp", default = 0},
			{type="int32", name="maxmp", default = 0},
		}
	},
	{
		define = "msg", name="RoleRequest", category = "14", id = "5", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
		 }
	},
	{
		define = "msg", name="RoleResponse", category = "14", id = "6", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode"},
			 {type="RoleInfoEx", name = "roles", list = true},
		 }
	},
	{
		define = "msg", name="CreateRoleRequest", category = "14", id = "9", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
			 {type="RoleInfo", name = "role"},
		 }
	},
	{
		define = "msg", name="CreateRoleResponse", category = "14", id = "10", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode"},
			 {type="RoleInfo", name = "role"},
		 }
	},
	{
		define = "msg", name="DeleteRoleRequest", category = "14", id = "11", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
			 {type="int32", name = "rid"},
		 }
	},
	{
		define = "msg", name="DeleteRoleResponse", category = "14", id = "12", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode"},
			 {type="int32", name = "rid"},
		 }
	},
	{
		define = "msg", name="MainRoleAttrResponse", category = "14", id = "13", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
			 {type="int32", name = "exp"},
			 {type="int32", name = "hp"},
			 {type="int32", name = "maxhp"},
			 {type="int32", name = "mp"},
			 {type="int32", name = "maxmp"},
		 }
	},
	{
		define = "msg", name="MainRoleInfoRequest", category = "14", id = "14", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
		 }
	},
	{
		define = "msg", name="MainRoleInfoResponse", category = "14", id = "15", base = "MsgBase",
		 attributes =
		 {
			{type="int8", name = "errcode"},
			{type="int16", name="vit", default = 0},
			{type="int16", name="str", default = 0},
			{type="int16", name="agi", default = 0},
			{type="int16", name="inte", default = 0},
			{type="int16", name="left", default = 0},
			{type="int16", name="hit", default = 0},
			{type="int16", name="dodge", default = 0},
			{type="int16", name="critical", default = 0},
			{type="int16", name="resist", default = 0},
			{type="int16", name="ap", default = 0},
			{type="int16", name="dp", default = 0},

		 }
	},
}

